<?php
/**
 * Minhlog Domain_Entity 用户类
 *
 * LICENSE
 *
 * This source file is subject to the new BSD license that is bundled
 * with this package in the file LICENSE.txt.
 *
 * @category   Domain
 * @package    Domain_Entity
 * @copyright  Copyright (c) 2009-2010 Minh.Shu@gmail.com
 * @license    New BSD License
 * @author     Minh.Shu
 * @version    $Id: User.php 2 2010-01-17 13:49:08Z Minh.Shu $
 *
 */

class Domain_Entity_User extends Domain_Entity_Abstract
{
    protected $_userId;
    protected $_userName;
    protected $_nickName;
    protected $_password;
    protected $_email;
    protected $_registerTime;
    protected $_lastLoginTime;

    // set/get方法定义开始
    public function setPrimaryId ($primaryId)
    {
        return $this->setUserId($primaryId);
    }

    public function getPrimaryId()
    {
        return $this->getUserId();
    }

    public function setUserId ($userId)
    {
        $this->_userId = (int) $userId;
        return $this;
    }

    public function getUserId ()
    {
        return $this->_userId;
    }

    public function setUserName ($userName)
    {
        $this->_userName = (string) $userName;
        return $this;
    }

    public function getUserName ()
    {
        return $this->_userName;
    }

    public function setNickName ($nickName)
    {
        $this->_nickName = (string) $nickName;
        return $this;
    }

    public function getNickName ()
    {
        return $this->_nickName;
    }

    public function setPassword ($password)
    {
        $this->_password = (string) $password;
        return $this;
    }

    public function getPassword ()
    {
        return $this->_password;
    }

    public function setEmail ($email)
    {
        $this->_email = (string) $email;
        return $this;
    }

    public function getEmail ()
    {
        return $this->_email;
    }

    public function setRegisterTime ($registerTime)
    {
        $this->_registerTime = (string) $registerTime;
        return $this;
    }

    public function getRegisterTime ()
    {
        return $this->_registerTime;
    }

    public function setLastLoginTime ($lastLoginTime)
    {
        $this->_lastLoginTime = (string) $lastLoginTime;
        return $this;
    }

    public function getLastLoginTime ()
    {
        return $this->_lastLoginTime;
    } // set/get方法定义结束
}